<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>upload</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
	
</head>

<body>
    <form id="form1" action="" method="post" >
        <!-- encype 是文件转码 -->
        <!-- <input type="file" name="file" id="file" value="" /> -->
        <input type="button" value="下载" id="btn" />
        <!-- 文件夹id<input type="text" name="documentid" id ="documentid"> -->
        <!-- <input type="submit" value="上传" id="btn" /> -->
    </form>
</body>
<script type="text/javascript">
     $("#btn").click(function () {
        var formData = new FormData();
		 formData.append("url","\\data\\dossier\\zip\\李小红盗窃案-1233333-afsdfsd131321.zip");
		 console.log(formData)
		 console.log("send")
        $.ajax({
            type: "POST", // 数据提交类型
            url: "http://localhost:10051/handling/material/downloadPack", // 发送地址
            data: formData, //发送数据
            async: true, // 是否异步
            processData: false, //processData 默认为false，当设置为true的时候,jquery ajax 提交的时候不会序列化 data，而是直接使用data
            contentType: false //
        });
    }); 
</script>

</html>